import request from '@/utils/request'

export function page(courseId,empId,begin,end,page,pageSize) {
  return request({
    url: '/arrange?courseId='+courseId+'&empId='+empId+'&begin='+begin+'&end='+end+'&page='+page+'&pageSize='+pageSize,
    method: 'get'
  })
}

export function deleteById(id) {
  return request({
    url: '/arrange/'+id,
    method: 'delete',
  })
}

export function add(arrange) {
  return request({
    url: '/arrange',
    method: 'post',
    data: arrange
  })
}

export function update(arrange) {
  return request({
    url: '/arrange',
    method: 'put',
    data: arrange
  })
}

export function selectById(id) {
  return request({
    url: '/arrange/'+id,
    method: 'get',
  })
}